package ExamLab.Test1;

import java.io.*;

public class AC implements Serializable {

	int a = 1;
	static int b = 2;
	transient int c = 2;

	AC(int a, int b, int c) {
		this.a = a;
		this.b = b;
		this.c = c;
	}

	public static void main(String args[]) throws Exception {
		AC ob1 = new AC(4, 5, 6);
		new ObjectOutputStream(new FileOutputStream("A.ser")).writeObject(ob1);
		AC ob2 = (AC) new ObjectInputStream(new FileInputStream("A.ser")).readObject();
		System.out.print(ob2.a + " " + ob2.b + " " + ob2.c);
	}
}